﻿<Window x:Class="TfsBugger.Dialogs.ServerConnectDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Connect to Team Foundation Server" Height="350" Width="571" Loaded="OnWindowLoaded">
	<Window.Resources>
		<ResourceDictionary Source="../DefaultStyles.xaml" />
	</Window.Resources>
	<Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <DockPanel>
            <StackPanel Height="35" DockPanel.Dock="Top" Orientation="Horizontal" Background="{StaticResource BlackGlass}">
                <TextBlock Foreground="White" Text="Server:" VerticalAlignment="Center" Margin="5" />
                <TextBox Name="txtServerName" Width="200" Height="22" Margin="5" />
                <Button Name="btnConnect" Style="{StaticResource Style_ButtonDefault}" Click="OnConnectButtonClick">
                    <TextBlock Foreground="White" Text="Connect" />
                </Button>
            </StackPanel>
			<Border Margin="3" DockPanel.Dock="Top" BorderBrush="Gray" BorderThickness="1" CornerRadius="2">
				<Expander Header="Advanced Settings" Margin="5">
					<StackPanel DockPanel.Dock="Top" Orientation="Horizontal" Margin="5 0 5 0">
						<CheckBox Name="chkUseHttps" VerticalAlignment="Center">
							<Label>Use HTTPS</Label>
						</CheckBox>
						<Label>Port:</Label>
						<TextBox Name="txtPortNum" Style="{StaticResource Style_TextBoxDefault}" Width="50" VerticalAlignment="Center" />
					</StackPanel>
				</Expander>
			</Border>	
				
			<StackPanel Height="35" Width="Auto" DockPanel.Dock="Bottom" Orientation="Horizontal" Background="{StaticResource BlackGlass}">
                <Button Name="btnOk" Style="{StaticResource Style_ButtonDefault}" Click="OnOkButtonClick">
                    <TextBlock Foreground="White" Text="OK" />
                </Button>
                <Button Name="btnCancel" Style="{StaticResource Style_ButtonDefault}" Click="OnCancelButtonClick">
                    <TextBlock Foreground="White" Text="Cancel" />
                </Button>                
            </StackPanel>
            <Grid>
                <ListView Name="lstServers" Background="{StaticResource SoftBackground}" SelectionChanged="OnServerSelectionChanged">
                    <ListView.View>
                        <GridView>
							<GridView.Columns>
                                <GridViewColumn Header="Server">
									<GridViewColumn.CellTemplate>
										<DataTemplate>
											<TextBlock Text="{Binding Path=ServerName}" />
										</DataTemplate>
									</GridViewColumn.CellTemplate>									
                                </GridViewColumn>
                            </GridView.Columns>
                        </GridView>
                    </ListView.View>
                </ListView>
            </Grid>
        </DockPanel>
    </Grid>
    
</Window>
